<!-- 提货专区提货卡及记录 -->
<template>
	<view class="container">
		<uni-nav-bar fixed="true" statusBar="true" @clickLeft="backClick" color="#303133" leftIcon="back" background="#fff">
			<view class="searchBox">
				<icon class="searchIcon" type="search" :size='20' color='#999'></icon>
				<input class="topSearch" type="text" confirm-type="search" v-model="keys" placeholder="请输入搜索内容" @confirm="search" />
			</view>
		</uni-nav-bar>
		<view class="content">
			<!-- #ifdef MP-WEIXIN -->
			<view class="tabBox" :style="{top:fixTop + 6 + 'px'}">
				<!-- #endif -->
				<!-- #ifndef MP-WEIXIN -->
				<view class="tabBox">
					<!-- #endif -->
					<view v-for="(item,index) in tabList" :key="index" :class="[1==1?'tab':'',current == index?'active':'']" @tap="changeTab(index)">{{item}}</view>
				</view>
				<!-- 空白页 -->
				<empty v-if="emptyShow" :custom="true" src="../../static/images/no-orders.png" text="您还没有相关记录哦"></empty>
				<!-- 提货卡购买列表 -->
				<view class="order-item" v-if="current == 0" v-for="(items,index) in pickCardList" :key="index">
					<view class="i-top">
						<text class="seller_name clamp">{{items.card_name}}</text>
						<text class="state">{{items._status._title}}</text>
					</view>
					<view class="cardInfo">
						<view class="a">
							<text class="a-a">提货卡点：</text>
							<text class="a-b">{{items.surplus_card_value}}</text>
						</view>
						<view class="a b">
							<text class="a-a" v-if="items.paid">支付金额：</text>
							<text class="a-a" v-else>待支付：</text>
							<text class="a-b">{{items.total_price}}</text>
						</view>
					</view>
					<!-- 待支付 -->
					<view class="action-box b-t">
						<button class="action-btn" @tap.stop="phoneCallCard()">联系客服</button>
						<!-- <button class="action-btn" @tap.stop="cardetail(items)">订单详情</button> -->
						<button class="action-btn" v-if="[6,7,9,10,11,12,13].includes(items._status._type)" @tap.stop="buyCon(items.order_id,1)">购买合同</button>
						<button class="action-btn" v-if="items._status._type == 1" @tap.stop="cancel(items)">取消订单</button>
						<button class="action-btn act" v-if="items._status._type == 1" @tap.stop="goPayCard(items)">前往支付</button>
					</view>
				</view>
				<!-- 订单列表 -->
				<navigator v-if="current == 1" v-for="(items,index) in pickList" :key="index" :url="'/mall/pickCardMall/pickCardOrderDetail?id='+items.order_id"
				 hover-class="none">
					<view class="order-item">
						<view class="i-top">
							<!-- <image class="seller_logo" :src="items.online_logo" mode=""></image> -->
							<text class="seller_name clamp">{{items.online_name}}</text>
							<text class="state">{{items._status._title}}</text>
						</view>

						<!-- <scroll-view v-if="items.cartInfo.length > 1" class="goods-box" scroll-x>
							<view v-for="(goodsItem, goodsIndex) in items.cartInfo" :key="goodsIndex" class="goods-item">
								<image v-if="goodsItem.productInfo.attrInfo" class="goods-img" :src="goodsItem.productInfo.attrInfo.image" mode="aspectFill"></image>
								<image v-else class="goods-img" :src="goodsItem.productInfo.image" mode="aspectFill"></image>
							</view>
						</scroll-view> -->
						<view class="goods-box-single" v-for="(goodsItem, goodsIndex) in items.cartInfo"
						 :key="goodsIndex">
							<image class="goods-img" v-if="goodsItem.productInfo.attrInfo" :src="goodsItem.productInfo.attrInfo.image" mode="aspectFill"
							 @tap.stop="goGoods(goodsItem.product_id)"></image>
							<image class="goods-img" v-else :src="goodsItem.productInfo.image" mode="aspectFill"></image>
							<view class="right">
								<text class="title clamp2">{{goodsItem.productInfo.store_name}}</text>
								<view class="attr-box">
									<text class="clamp" v-if="goodsItem.productInfo.attrInfo">规格：{{goodsItem.productInfo.attrInfo.suk}}</text>
									<text v-else></text>
									<text>数量：x {{goodsItem.cart_num}}</text>
								</view>
							</view>
						</view>
						<!-- 待支付 -->
						<view class="action-box b-t" v-if="items.paid == 0&&items.status != 4">
							<button class="action-btn" @tap.stop="phoneCall(items.online_phone)">联系商家</button>
							<button class="action-btn" @tap.stop="checkMoney(items)">立即支付</button>
						</view>
						<!-- 已取消 -->
						<view class="action-box b-t" v-if="items.paid == 0&&items.status == 4">
							<button class="action-btn" @tap.stop="phoneCall(items.online_phone)">联系商家</button>
						</view>
						<!-- 待发货 -->
						<view class="action-box b-t" v-if="items.status == 0&&items.paid == 1">
							<button class="action-btn" @tap.stop="phoneCall(items.online_phone)">联系商家</button>
						</view>
						<!-- 待收货 -->
						<view class="action-box b-t" v-if="items.status == 1">
							<button class="action-btn" @tap.stop="phoneCall(items.online_phone)">联系商家</button>
							<button class="action-btn" @tap.stop="express(items.order_id)">查看物流</button>
							<button class="action-btn" @tap.stop="queren(items.order_id)">确认收货</button>
						</view>
						<view class="action-box b-t" v-if="items.status == 2">
							<button class="action-btn" @tap.stop="phoneCall(items.online_phone)">联系商家</button>
							<button class="action-btn" @tap.stop="express(items.order_id)">查看物流</button>
							
						</view>
						<view class="totlePrice">
							<text class="price">{{items.total_price}}</text>
						</view>
					</view>
				</navigator>
				
				<!-- 提货卡收购列表 -->
				<view class="order-item" v-if="current == 2" v-for="(items,index) in BuyFormList" :key="index">
					<view class="i-top">
						<view class="seller_name clamp">
							<text class="a">{{items.p_name}}</text>
							<text class="b">共{{items.p_number}}期</text>
						</view>
						<text class="state">{{items.pay_number}}/{{items.p_number}}期</text>
					</view>
					<view class="cardInfo">
						<view class="a">
							<text class="a-a">每期兑付：</text>
							<text class="a-b">{{items.now_card_value}}</text>
						</view>
						<view class="a b">
							<text class="a-a">总收购金额：</text>
							<text class="a-b">{{items.pay_card_value}}</text>
						</view>
					</view>
					<!-- 待支付 -->
					<view class="action-box b-t">
						<button class="action-btn" @tap.stop="phoneCallCard()">联系客服</button>
						<button class="action-btn" @tap.stop="buyCon(items.take_order_id,2)">收购合同</button>
					</view>
				</view>

				<uni-load-more class="loadMore" iconType="circle" :status="loadStatus" :contentText="contentText"></uni-load-more>
			</view>
			<!-- app选择支付方式 -->
			<choosePay ref="choosePay" @confirm="confirm"></choosePay>
			<!-- 多订单支付弹窗 -->
			<uni-popup ref="uniPopup" type="center">
				<view class="box">
					<image class="close" @tap="close" src="../../static/images/center/close.png" mode=""></image>
					<view class="title">提货专区商品需一起完成提货</view>
					<scroll-view scroll-y="true" class="goodsList">
						<view class="item" v-for="(item,index) in oneOrderList.cartInfo">
							<view class="left clamp">
								<image class="img" :src="item.productInfo.image"></image>
								<text class="txt clamp">{{item.productInfo.store_name}}</text>
							</view>
							<view class="right">
								<text class="a">{{item.productInfo.price}}</text>
								<text class="b">× {{item.cart_num}}</text>
							</view>
						</view>
					</scroll-view>
					<view class="totlePrice">{{oneOrderList.total_price}}</view>
					<view class="btnBox">
						<view class="left">
							<text class="a">需支付：</text>
							<text class="b">{{oneOrderList.pay_price}}</text>
						</view>
						<view class="btn" @tap="oneOrderPay(oneOrderList.unique)">付款</view>
					</view>
				</view>
			</uni-popup>
		</view>
</template>

<script>
	import {
		takeOrderList,
		takeOrderReceive,
		takeOrderPay,
		takeDeliveryOrderList,
		takeOrderGoods,
		takeDeliveryCancel,
		takeBuyFormList
	} from '@/api/mall.js'
	import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue"
	import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
	import empty from "@/components/empty/empty";
	import utils from "@/common/utils.js"
	import wechat from '@/common/wechat.js'
	import choosePay from '@/components/choosePay/choosePay.vue'
	export default {
		components: {
			uniNavBar,
			uniLoadMore,
			empty,
			choosePay
		},
		data() {
			return {
				//#ifdef MP-WEIXIN
				fixTop: getApp().globalData.MenuButtonBottom,
				//#endif
				tabList: ['提货卡记录', '提货记录', '收购记录'],
				current: 0,
				emptyShow: false,
				limit: 10,
				page: 1,
				keys: '',
				pickList: [],
				pickCardList: [],
				BuyFormList: [],
				oneOrderList: {},
				loadStatus: "loading",
				contentText: {
					contentdown: "上拉显示更多",
					contentrefresh: "正在加载...",
					contentnomore: ""
				},
				paytype: "weixin",
				provider: "wxpay",
				// #ifdef MP-WEIXIN
				payStatus: "routine",
				// #endif
				// #ifdef APP-PLUS
				payStatus: "app",
				// #endif
				// #ifdef H5
				payStatus: "weixin",
				// #endif
				order_id: ''
			};
		},
		onLoad(option) {
			if (option.type == 0) {
				this.current = 0
				this.getPickCardList()
			} else if (option.type == 1) {
				this.current = 1
				this.getPickList()
			}
		},
		onShow() {
			if (uni.getStorageSync("paySuccess")) {
				this.loadStatus = "loading";
				this.page = 1;
				this.pickList = [];
				this.emptyShow = false
				this.getPickList();
				uni.removeStorageSync('paySuccess')
			}
		},
		onReachBottom() {
			if (this.loadStatus == "more") {
				this.loadStatus = "loading"
				if (this.current == 0) {
					this.getPickCardList()
				} else if (this.current == 1) {
					this.getPickList()
				} else if (this.current == 2) {
					this.getBuyFormList()
				}
			}
		},
		methods: {
			// 返回
			backClick() {
				uni.navigateBack({

				})
			},
			//搜索
			search() {
				this.pickList = []
				this.pickCardList = []
				this.BuyFormList = []
				this.page = 1
				this.loadStatus = "loading"
				this.emptyShow = false
				if (this.current == 0) {
					this.getPickCardList()
				} else if (current == 1){
					this.getPickList()
				} else if (current == 2){
					this.getBuyFormList()
				}
			},
			changeTab(index) {
				this.current = index;
				this.pickList = []
				this.pickCardList = []
				this.BuyFormList = []
				this.page = 1
				this.loadStatus = "loading"
				this.keys = ''
				this.emptyShow = false
				if (index == 0) {
					this.getPickCardList()
				} else if (index == 1) {
					this.getPickList()
				} else if (index == 2){
					this.getBuyFormList()
				}
			},
			// 获取提货卡购买记录
			getPickCardList() {
				takeDeliveryOrderList({
					keywords: this.keys,
					page: this.page,
					limit: this.limit
				}).then(res => {
					uni.hideLoading()
					this.loadStatus = "more";
					let list = res.data.map((val, key) => {
						val.surplus_card_value = utils.format(Number(val.surplus_card_value))
						val.pay_price = utils.format(Number(val.pay_price))
						val.total_price = utils.format(Number(val.total_price))
						return val
					});
					this.pickCardList.push.apply(this.pickCardList, res.data);
					if (res.data.length < this.limit) this.loadStatus = "noMore"; //判断所有数据是否加载完成；
					this.page = this.page + 1;
					if (this.pickCardList.length == 0) {
						this.contentText.contentnomore = ''
						this.emptyShow = true
					} else {
						this.contentText.contentnomore = '没有更多了'
					}
				})
			},
			//获取提货记录
			getPickList() {
				takeOrderList({
					search: this.keys,
					page: this.page,
					limit: this.limit
				}).then(res => {
					uni.hideLoading()
					this.loadStatus = "more";
					this.pickList.push.apply(this.pickList, res.data);
					if (res.data.length < this.limit) this.loadStatus = "noMore"; //判断所有数据是否加载完成；
					this.page = this.page + 1;
					if (this.pickList.length == 0) {
						this.contentText.contentnomore = ''
						this.emptyShow = true
					} else {
						this.contentText.contentnomore = '没有更多了'
					}
				})
			},
			//获取提货卡收购记录
			getBuyFormList() {
				takeBuyFormList({
					search: this.keys,
					page: this.page,
					limit: this.limit
				}).then(res => {
					uni.hideLoading()
					this.loadStatus = "more";
					this.BuyFormList.push.apply(this.BuyFormList, res.data);
					if (res.data.length < this.limit) this.loadStatus = "noMore"; //判断所有数据是否加载完成；
					this.page = this.page + 1;
					if (this.BuyFormList.length == 0) {
						this.contentText.contentnomore = ''
						this.emptyShow = true
					} else {
						this.contentText.contentnomore = '没有更多了'
					}
				})
			},
			// 提货卡支付
			goPayCard(item) {
				uni.navigateTo({
					url: "/pages/center/vip/pickCardStep?orderId=" + item.order_id
				})
			},
			// 提货卡订单详情
			cardetail(item) {
				uni.navigateTo({
					url: "./pickCardDetail?item=" + encodeURIComponent(JSON.stringify(item))
				})
			},
			checkMoney(item) {
				this.order_id = item.unique
				if(item.is_multi_order) {
					uni.showLoading({
						mask:true
					})
					takeOrderGoods({
						uni: item.unique
					}).then(res => {
						uni.hideLoading()
						this.oneOrderList = res.data
						this.$refs.uniPopup.open()
					})
				} else {
					//#ifndef APP-PLUS
					this.goPay(item.unique)
					//#endif
					//#ifdef APP-PLUS
					this.$refs.choosePay.show()
					//#endif
				}
			},
			close() {
				this.$refs.uniPopup.close()
			},
			oneOrderPay(id) {
				this.order_id = id
				//#ifndef APP-PLUS
				this.goPay(id)
				//#endif
				//#ifdef APP-PLUS
				this.$refs.choosePay.show()
				//#endif
				this.close()
			},
			confirm(e) {
				this.paytype = e.payType
				this.provider = e.provider
				this.goPay(this.order_id)
			},
			// 立即支付
			goPay(id) {
				uni.showLoading({
					mask:true
				})
				takeOrderPay({
					uni: id,
					paytype: this.paytype,
					from: this.payStatus
				}).then(res => {
					if (res.data.status == "ZERO_SUCCESS") {
						uni.showToast({
							title: "支付成功"
						})
						uni.setStorageSync("paySuccess", true)
						setTimeout(function() {
							uni.navigateTo({
								url: "/mall/pickCardMall/pickCardOrderDetail?id=" + res.data.result.order_id
							})
						}, 300);
					} else if (res.data.status == "WECHAT_PAY" || res.data.status == "ALIPAY") {
						// #ifdef MP-WEIXIN
						uni.requestPayment({
							provider: 'wxpay',
							timeStamp: res.data.result.jsConfig.timestamp,
							nonceStr: res.data.result.jsConfig.nonceStr,
							package: res.data.result.jsConfig.package,
							signType: res.data.result.jsConfig.signType,
							paySign: res.data.result.jsConfig.paySign,
							success: function(re) {
								uni.hideLoading()
								uni.setStorageSync("paySuccess", true)
								this.changeTab(1)
								// uni.navigateTo({
								// 	url: "/mall/pickCardMall/pickCardOrderDetail?id=" + res.data.result.order_id
								// })
							},
							fail(r) {
								console.log(r)
							}
						});
						// #endif
						// #ifdef APP-PLUS
						uni.requestPayment({
							provider: this.provider,
							orderInfo: res.data.result.jsConfig,
							success: (e) => {
								uni.setStorageSync("paySuccess", true)
								this.changeTab(1)
								// uni.navigateTo({
								// 	url: "/mall/pickCardMall/pickCardOrderDetail?id=" + res.data.result.order_id
								// })
							},
							fail: (err) => {
								console.log(err)
							}
						})
						// #endif
						//#ifdef H5
						// h5支付
						// let url = "/mall/pickCardMall/pickCardOrderDetail?id=" + res.data.result.order_id
						wechat.pay(res.data.result.jsConfig, url, this.changeTab(1))
						//#endif
					}
				})
			},
			// 确认收货
			queren(id) {
				let _this = this
				uni.showLoading({
					mask:true
				})
				takeOrderReceive({
					uni: id
				}).then(res => {
					uni.hideLoading()
					_this.loadStatus = "loading";
					_this.page = 1;
					_this.pickList = [];
					_this.getPickList();
				})
			},
			//联系商家
			phoneCall(phone) {
				uni.makePhoneCall({
					phoneNumber: phone
				})
			},
			//联系客服
			phoneCallCard() {
				uni.makePhoneCall({
					phoneNumber: uni.getStorageSync("siteSerPhone")
				})
			},
			//跳转购买合同
			buyCon(id,type) {
				uni.navigateTo({
					url: "/pages/center/vip/pickCardBuyCon?orderId=" + id + "&type=" + type
				})
			},
			cancel(item) {
				uni.showLoading({
					mask:true
				})
				takeDeliveryCancel({
					order_id: item.order_id
				}).then(res => {
					uni.hideLoading()
					this.pickCardList = []
					this.page = 1
					this.loadStatus = "loading"
					this.emptyShow = false
					this.getPickCardList()
					uni.showToast({
						title: "取消成功"
					})
				})
			},
			// 查看物流
			express(id) {
				uni.navigateTo({
					url: "/mall/order/express?id=" + id
				})
			},
			keyboradClose() {
				this.keyboradShow = false
			},
		},
		onHide() {
			this.$refs.uniPopup.close()
		}
	}
</script>
<style>
	page {
		background-color: #f5f5f5;
	}
</style>
<style lang="scss" scoped>
	.container {
		.searchBox {
			position: relative;

			.searchIcon {
				position: absolute;
				left: 20rpx;
				//#ifdef MP-WEIXIN
				top: 14rpx;
				//#endif
				//#ifdef APP-PLUS
				top: -14rpx;
				//#endif
				//#ifdef H5
				top: -10rpx;
				//#endif
				color: #9a9a9a;
			}

			.topSearch {
				background-color: #f8f8f8;
				//#ifdef MP-WEIXIN
				width: 420rpx;
				//#endif
				//#ifndef MP-WEIXIN
				width: 620rpx;
				//#endif
				height: 68rpx;
				padding-left: 80rpx;
				box-sizing: border-box;
				line-height: 68rpx;
				font-size: 24rpx;
				border-radius: 34rpx;
			}
		}

		.content {
			.tabBox {
				position: sticky;
				// #ifdef APP-PLUS
				top: calc(44px + var(--status-bar-height));
				// #endif
				// #ifdef H5
				top: 44px;
				// #endif
				display: flex;
				height: 88rpx;
				z-index: 99;
				background-color: #fff;
				box-shadow: 0px 6rpx 8rpx 0px rgba(0, 0, 0, 0.05);

				.tab {
					width: 50%;
					text-align: center;
					line-height: 88rpx;
					color: #484848;
					font-size: 30rpx;
				}

				.active {
					font-weight: bold;
					color: #484848;
					position: relative;
				}

				.active:after {
					content: '';
					position: absolute;
					height: 4rpx;
					width: 50rpx;
					border-radius: 2rpx;
					background-color: #FBC866;
					bottom: 10rpx;
					left: 50%;
					margin-left: -25rpx;
				}
			}

			.order-item {
				display: flex;
				flex-direction: column;
				margin: 20rpx 30rpx;
				padding: 0 20rpx;
				background: #fff;
				border-radius: 10rpx;

				.i-top {
					display: flex;
					align-items: center;
					height: 80rpx;
					padding-right: 30rpx;
					font-size: 28rpx;
					color: #303133;
					position: relative;

					.seller_logo {
						width: 40rpx;
						height: 40rpx;
						border-radius: 20rpx;
						margin-right: 20rpx;
					}

					.seller_name {
						font-size: 32rpx;
						font-weight: 600;
						color: #343434;
						max-width: 400rpx;
						.b{
							margin-left: 10rpx;
							font-size: 28rpx;
							font-weight: normal;
							color: #666666;
						}
					}

					.icon-you {
						margin-top: 4rpx;
						margin-left: 10rpx;
						font-size: 24rpx;
					}

					.state {
						position: absolute;
						right: 0;
						top: 24rpx;
						color: #FBC866;
					}
				}

				.cardInfo {
					display: flex;

					.a {
						display: flex;
						align-items: baseline;
						color: #666666;

						.a-a {
							font-size: 28rpx;
						}

						.a-b {
							font-size: 36rpx;
							font-weight: bold;
						}
					}

					.b {
						margin-left: 20rpx;
					}
				}

				/* 多条商品 */
				.goods-box {
					height: 120rpx;
					padding: 20rpx;
					width: 100%;
					margin-left: -20rpx;
					white-space: nowrap;
					background-color: #f8f8f8;

					.goods-item {
						width: 120rpx;
						height: 120rpx;
						display: inline-block;
						margin-right: 24rpx;
					}

					.goods-img {
						display: block;
						width: 100%;
						height: 100%;
					}
				}

				/* 单条商品 */
				.goods-box-single {
					display: flex;
					padding: 20rpx;
					margin-left: -20rpx;
					width: 100%;

					.goods-img {
						display: block;
						width: 120rpx;
						height: 120rpx;
					}

					.right {
						flex: 1;
						display: flex;
						flex-direction: column;
						justify-content: space-between;
						padding: 0 0 0 24rpx;
						overflow: hidden;

						.title {
							text-align: justify;
							font-size: 28rpx;
							color: #303133;
							height: 88rpx;
							line-height: 40rpx;
							overflow: hidden;
						}

						.attr-box {
							font-size: 24rpx;
							color: #909399;
							display: flex;

							text:nth-of-type(1) {
								flex: 1;
								margin-right: 50rpx;
							}
						}
					}
				}

				.action-box {
					display: flex;
					align-items: center;
					height: 100rpx;
					position: relative;
				}

				.action-btn {
					width: 130rpx;
					height: 50rpx;
					margin: 0;
					margin-right: 24rpx;
					padding: 0;
					text-align: center;
					line-height: 50rpx;
					font-size: 24rpx;
					color: #666;
					background: #fff;
					border-radius: 100px;


					&:after {
						border-radius: 100px;
					}
				}

				.act {
					background: linear-gradient(90deg, #FBCC2C 0%, #FBDD73 100%);
				}
				.totlePrice {
					font-size: 36rpx;
					font-weight: bold;
					text-align: right;
					padding-bottom: 30rpx;
					color: #333;
					&:before {
						content: '总计：';
						font-weight: normal;
						font-size: 24rpx;
						color: #999;
					}
					&:after {
						content: ' 点';
						font-size: 24rpx;
						font-weight: bold;
						color: #333;
					}
				}
			}
		}
	}
	.box {
		background-color: #fff;
		position: relative;
		width: 600rpx;
		padding: 36rpx;
		box-sizing: border-box;
		border-radius: 10rpx;
	
		.close {
			position: absolute;
			top: 0rpx;
			right: 0rpx;
			width: 26rpx;
			height: 26rpx;
			padding: 30rpx;
		}
	
		.title {
			font-size: 30rpx;
			font-weight: bold;
			margin-bottom: 30rpx;
		}
		.goodsList{
			max-height: 35vh;
			overflow-y: auto;
			border-bottom: 1rpx solid #eee;
			.item{
				margin: 15rpx 0;
				display: flex;
				justify-content: space-between;
				align-items: center;
				.left{
					display: flex;
					flex: 1;
					align-items: center;
					.img{
						margin-right: 20rpx;
						width: 80rpx;
						height: 80rpx;
					}
					.txt{
						font-size: 28rpx;
						flex: 1;
					}
				}
				.right{
					min-width: 200rpx;
					display: flex;
					justify-content: flex-end;
					align-items: baseline;
					.a{
						font-size: 28rpx;
						font-weight: bold;
						margin-right: 4rpx;
						&::after{
							font-size: 24rpx;
							content: " 点";
						}
					}
					.b{
						font-size: 24rpx;
						color: #999;
					}
				}
			}
		}
		.totlePrice{
			text-align: right;
			font-size: 32rpx;
			font-weight: bold;
			padding: 20rpx 0;
			&::before{
				content: "总计：";
				font-size: 24rpx;
				font-weight: normal;
				color: #999;
			}
		}
		.btnBox{
			padding: 20rpx 0 0;
			display: flex;
			justify-content: space-between;
			text-align: center;
			.left{
				padding-top: 10rpx;
				display: flex;
				align-items: baseline;
				.a{
					font-size: 24rpx;
					color: #999;
				}
				.b{
					font-size: 32rpx;
					font-weight: bold;
					&::before{
						content: "￥";
						font-size: 24rpx;
					}
				}
			}
			.btn{
				background: #FBC866;
				color: #333;
				font-size: 30rpx;
				font-weight: bold;
				padding: 10rpx 60rpx;
				border-radius: 8rpx;
			}
		}
	}
</style>
